home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
softwareupdate
/
system
/
amigados
/
amigadoslibrary
/
setioerr.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-10-10
|
605b
|
29 lines
/* SetIoErr.c V1.0 93-09-26 */
/* ROM library: "dos.library/SetIoErr", (V36+) */
/* Copyright 1993, Anders Bjerin, Amiga C Club */
#include <dos/dos.h>
#include <clib/dos_protos.h>
#include <stdio.h>
#include <stdlib.h>
UBYTE *version = "$VER: SetIoErr 1.0";
int main( int argc, char *argv[] );
int main( int argc, char *argv[] )
{
/* Store the "old" error code here: */
LONG old_error_code;
/* Set the global dos error code to 0: */
old_error_code = SetIoErr( 0 );
/* Print the "old" error code: */
printf( "Old error code: %d\n", old_error_code );
exit( 0 );
}